package com.example.entity;

public class ShopCart {
    private Integer shopcartid;  // 购物车ID
    private Integer orderid;    // 订单ID
    private Integer userid;    // 用户ID
    private Integer recipeid;  // 食物ID
    private Double price;      // 单价
    private int num;        // 数量
    private String createtime; // 创建时间

    public Integer getShopcartid() {
        return shopcartid;
    }

    public void setShopcartid(Integer shopcartid) {
        this.shopcartid = shopcartid;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getRecipeid() {
        return recipeid;
    }

    public void setRecipeid(Integer recipeid) {
        this.recipeid = recipeid;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "ShopCart{" +
                "shopcartid=" + shopcartid +
                ", orderid=" + orderid +
                ", userid=" + userid +
                ", recipeid=" + recipeid +
                ", price=" + price +
                ", num=" + num +
                ", createtime='" + createtime + '\'' +
                '}';
    }
}

